package com.yc.cinema;

import lombok.Data;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Data
@Component
public class Computer1 {

    @Resource
    private Storage usb;
    // 属性名==> bean.id
    @Resource
    private Storage hd;
}
